//
//  colors.h
//  justiceRoad
//
//  Created by linzaifei on 2021/1/15.
//  Copyright © 2021 linzaifei. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>


#define HexRGB(rgb) [UIColor colorWithHexString:rgb alpha:1.0]
#define HexRGBA(rgb,a) [UIColor colorWithHexString:rgb alpha:a]
//#define
NS_ASSUME_NONNULL_BEGIN

@interface colors : NSObject

typedef NSString* ColorTypes NS_STRING_ENUM;

//主题色
FOUNDATION_EXPORT ColorTypes const COLOR_THEME;

//背景颜色
FOUNDATION_EXPORT ColorTypes const COLOR_BG;

//通用颜色
FOUNDATION_EXPORT ColorTypes const COLOR_BLACK;
FOUNDATION_EXPORT ColorTypes const COLOR_DARK;
FOUNDATION_EXPORT ColorTypes const COLOR_GRAY;
FOUNDATION_EXPORT ColorTypes const COLOR_GREY;
FOUNDATION_EXPORT ColorTypes const COLOR_WHITE;
FOUNDATION_EXPORT ColorTypes const COLOR_LINE;

FOUNDATION_EXPORT ColorTypes const COLOR_00;
FOUNDATION_EXPORT ColorTypes const COLOR_99;
FOUNDATION_EXPORT ColorTypes const COLOR_21;
FOUNDATION_EXPORT ColorTypes const COLOR_8E;
FOUNDATION_EXPORT ColorTypes const COLOR_CC;
FOUNDATION_EXPORT ColorTypes const COLOR_FF80;
FOUNDATION_EXPORT ColorTypes const COLOR_F6;
FOUNDATION_EXPORT ColorTypes const COLOR_51;
FOUNDATION_EXPORT ColorTypes const COLOR_FFEF;
FOUNDATION_EXPORT ColorTypes const COLOR_C05E;
FOUNDATION_EXPORT ColorTypes const COLOR_FFE5;
FOUNDATION_EXPORT ColorTypes const COLOR_FDD4;
FOUNDATION_EXPORT ColorTypes const COLOR_FFE8;
FOUNDATION_EXPORT ColorTypes const COLOR_78;
FOUNDATION_EXPORT ColorTypes const COLOR_924B;
FOUNDATION_EXPORT ColorTypes const COLOR_FFFF00;
FOUNDATION_EXPORT ColorTypes const COLOR_EA;
FOUNDATION_EXPORT ColorTypes const COLOR_E980;
FOUNDATION_EXPORT ColorTypes const COLOR_D4B3;

@end


@interface UIColor(theme)
///设置颜色（使用colorType）
+(UIColor *)colorWithHexLightColor:(ColorTypes)lightColor darkColor:(ColorTypes)darkColor;
///设置颜色UIColor
+(UIColor *)colorWithLightColor:(UIColor*)lightColor darkColor:(UIColor*)darkColor;


@end

@interface UIColor (Hex)
///设置十六进制颜色 0xffffff #ffffff 等
+(UIColor *)colorWithHexString:(NSString *)hexColor alpha:(float)opacity;

@end

NS_ASSUME_NONNULL_END
